<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./demo1.css">
</head>
<body>
    <!-- 第一个放大镜 -->
    <div class="box box1">
        <!-- 图片 -->
        <div class="img">
            <div class="mask"></div>
        </div>
        <!-- 放大镜 -->
        <div class="enlarge"></div>
    </div>
    <br>
    <br> 
    <br>   
    <!-- 第二个放大镜 -->
    <div class="box box2">
        <!-- 图片 -->
        <div class="img">
            <div class="mask"></div>
        </div>
        <!-- 放大镜 -->
        <div class="enlarge"></div>
    </div>



</body>

<script type="module">
import Enlarge from './demo1.js'

const enlarge1=new Enlarge('.box1')
const enlarge2=new Enlarge('.box2')

</script>
</html>
<!-- <script src="./demo1.js"></script> -->